home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5704 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  572 b 

  1. Path: news.cp10.es.xerox.com!news
  2. From: edb@cp10.es.xerox.com (EDB)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: REBOOTING?
  5. Date: 5 Feb 1996 21:08:36 GMT
  6. Organization: Xerox
  7. Message-ID: <4f5rkk$lpt@news.cp10.es.xerox.com>
  8. Reply-To: edb@cp10.es.xerox.com
  9. NNTP-Posting-Host: erst.cp10.es.xerox.com
  10.  
  11. C/C++ code to warm boot from DOS:
  12.  
  13.     void (far *pf)() = 0xffff0000;
  14.     int far *magic = (int far *) 0x00400072;
  15.     *magic = 0x1234;
  16.     (*pf)();
  17.  
  18. C/C++ code to warm boot from Windows 3.1:
  19.  
  20.     EXITWINDOWS(EW_REBOOTSYSTEM, 0);
  21.  
  22. If you meant some other system, you're on your own...
  23.  
  24. - Eric
  25.  
  26.  
  27.  
  28.